import createRouter from './src/router'

const options = {
  async: false,
  type: 'layout',
  mode: 'hash',
  base: '',
  routes: [
    {
      path: 'page1',
      icon: 'iconic_xiaoxi',
      title: 'page1',
      children: [
        {
          path: '/page1-1',
          icon: 'iconic_xiaoxi',
          title: 'page1-1',
          componentName: 'page1-1',
          needLogin: true
        },
        {
          path: '/page1-2',
          icon: 'iconic_xiaoxi',
          title: 'page1-2',
          componentName: 'page1-2',
          needLogin: true
        }
      ]
    },
    {
      path: '/page2',
      icon: 'iconic_xiaoxi',
      title: 'page2',
      componentName: 'page2',
      needLogin: true
    }
  ]
}

export default createRouter(options)
